﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/PageMore.Master" AutoEventWireup="true" CodeBehind="MembersFindOrgInfo.aspx.cs" Inherits="ZHDJ.Web.Portal.MembersFindOrg.MembersFindOrgInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script>
        $(function () {
            $("#ctl00_ContentPlaceHolder1_Form1_sdfsdf_txtMobileNo_wrapper").keydown(function (e) {
                var mobile = $("#ctl00_ContentPlaceHolder1_Form1_sdfsdf_txtMobileNo-inputEl").val();
                if (e.keyCode != 8 && (!isNumber(e.keyCode) || mobile.length >= 11)) {
                    e.stopPropagation();
                    return false;
                }
            });

            $("#ctl00_ContentPlaceHolder1_Form1_sdfsdf_btnSave").click(function () {
                var userName = $("#ctl00_ContentPlaceHolder1_Form1_sdfsdf_txtUserName-inputEl").val();
                var mobileNo = $("#ctl00_ContentPlaceHolder1_Form1_sdfsdf_txtMobileNo-inputEl").val();
                var idCard = $("#ctl00_ContentPlaceHolder1_Form1_sdfsdf_txtIDCard-inputEl").val();
                var address = $("#ctl00_ContentPlaceHolder1_Form1_sdfsdf_txtAddress-inputEl").val();

                if (String.isNullOrEmpty(userName)) {
                    alert("请输入姓名！");
                    return false;
                }

                if (String.isNullOrEmpty(mobileNo)) {
                    alert("请输入联系方式！");
                    return false;
                }

                if (String.isNullOrEmpty(idCard)) {
                    alert("请输入身份证号！");
                    return false;
                }

                if (String.isNullOrEmpty(address)) {
                    alert("请输入居住地址！");
                    return false;
                }

                return true;
            });
        });

        String.isNullOrEmpty = function (value) {
            if (value == null || value == "")
                return true;
            else
                return false;
        }

        function isNumber(KeyCode) {
            //如果输入的字符是在0-9之间
            if (((KeyCode > 47) && (KeyCode < 58))) {
                return true;
            }
            else {
                return false;
            }
        }

        function nottoLog() {
            alert("只有注册用户才能进行登记。");
            window.location = "../../default.aspx";
        }
        function submitOk() {
            alert("提交成功,请耐心等待!");
            window.location = "../../default.aspx";
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <f:PageManager ID="PageManager1" runat="server" />
    <f:Form runat="server" ShowBorder="false" ShowHeader="false" ID="Form1">
        <Items>
            <f:ContentPanel runat="server" ID="sdfsdf" ShowBorder="false">
                <div class="cztable mycontactinfo mycustomtable" style="margin-top: 20px;">
                    <table class="table_b" border="0" cellspacing="0" cellpadding="0">                        
                        <tr class="tr_b">
                            <th class="th_b">姓名<span style="color: red">*</span>： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtUserName" Width="180px" runat="server" Required="true" ShowRedStar="true" MaxLength="10">
                                </f:TextBox>
                            </td>
                            <th class="th_b">性别： </th>
                            <td class="td_b">
                                <f:RadioButtonList ID="rblGender" runat="server">
                                    <f:RadioItem Selected="true" Text="男" Value="0" />
                                    <f:RadioItem Text="女" Value="1" />
                                </f:RadioButtonList>
                            </td>
                        </tr>
                        <tr class="tr_b">
                            <th class="th_b">出生年月：  </th>
                            <td class="td_b">
                                <f:DatePicker ID="dpBirthday" runat="server" Width="180px"></f:DatePicker>
                            </td>
                            <th class="th_b">党支部： </th>
                            <td class="td_b">
                                <f:TwinTriggerBox runat="server" ID="ppBranch" ShowTrigger1="true" Width="180px" ShowTrigger2="true" Trigger1Icon="Clear" EnableEdit="false">
                                </f:TwinTriggerBox>
                            </td>
                        </tr>
                        <tr class="tr_b">
                            <th class="th_b">身份证号<span style="color: red">*</span>： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtIDCard" Width="180px" runat="server" Required="true" ShowRedStar="true" MaxLength="18">
                                </f:TextBox>
                            </td>
                            <th class="th_b">手机号码<span style="color: red">*</span>： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtMobileNo" runat="server" Required="true" ShowRedStar="true" Width="180px"></f:TextBox>
                            </td>
                        </tr>
                        <tr class="tr_b">
                            <th class="th_b">QQ号码： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtQQNumber" Width="180px" runat="server" MaxLength="18">
                                </f:TextBox>
                            </td>
                            <th class="th_b">籍贯： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtNativePlace" runat="server" Width="180px"></f:TextBox>
                            </td>
                        </tr>
                        <tr class="tr_b">
                            <th class="th_b">民族： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtNation" Width="180px" runat="server" MaxLength="18">
                                </f:TextBox>
                            </td>
                            <th class="th_b">学历： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtEducational" runat="server" Width="180px"></f:TextBox>
                            </td>
                        </tr>
                        <tr class="tr_b">
                            <th class="th_b">职务： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtPost" Width="180px" runat="server" MaxLength="18">
                                </f:TextBox>
                            </td>
                            <th class="th_b">党员编号： </th>
                            <td class="td_b">
                                <f:TextBox ID="txtPartyCard" runat="server" Width="180px"></f:TextBox>
                            </td>
                        </tr>
                        <tr class="tr_b">
                            <th class="th_b">入党时间： </th>
                            <td class="td_b">
                                <f:DatePicker ID="dpJoinPartyDate" runat="server" Width="180px"></f:DatePicker>
                            </td>
                            <th class="th_b">原党支部： </th>
                            <td class="td_b" colspan="3">
                                <f:TextBox ID="txtOriginalBranch" runat="server" Width="180px"></f:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th class="th_b">原党组织工作所在地： </th>
                            <td class="td_b" colspan="3">
                                <f:TextBox ID="txtPartyJobAddress" runat="server" Width="580px"></f:TextBox>
                            </td>
                        </tr>
                        <tr class="tr_b">
                            <th class="th_b">居住地址<span style="color: red">*</span>： </th>
                            <td class="td_b" colspan="3">
                                <f:TextBox ID="txtAddress" runat="server" Width="580px" Required="true" ShowRedStar="true"></f:TextBox>
                            </td>
                        </tr>
                        <tr class="tr_b">
                            <th class="th_b">备注： </th>
                            <td class="td_b" colspan="3">
                                <f:TextArea runat="server" ID="txtRemark" Height="100px" Width="580px"></f:TextArea>
                            </td>
                        </tr>                        
                    </table>
                    <div class="mysubmitbtn" style="width: 100px;margin: 40px auto 0;">
                        <asp:Button ID="btnSave" runat="server" Text="确定" CssClass="mybtn" OnClick="btnSave_Click" />
                    </div>
                </div>
            </f:ContentPanel>
        </Items>
    </f:Form>
    <f:Window ID="Window1" CloseAction="Hide" runat="server" IsModal="true" Title="选择党支部"
        Hidden="true" Target="Parent" EnableResize="true" EnableMaximize="true" EnableIFrame="true"
        IFrameUrl="about:blank" Width="700px" Height="500px">
    </f:Window>
    <f:HiddenField ID="hdBranchID" runat="server"></f:HiddenField>
</asp:Content>
